﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockNet.stocks
{
    public class StockRecord 
    {
        public StockRecord(string companyName, string stockSymbol, string sector, string industry,
            uint employeeCount, DateTime start, DateTime end)
        {
            CompanyName = companyName;
            StockSymbol = stockSymbol;
            Sector = sector;
            Industry = industry;
            EmployeeCount = employeeCount;
            Start = start;
            End = end;
        }

        public StockRecord(string companyName, string stockSymbol, string sector, string industry, uint employeeCount)
        {
            this.CompanyName = companyName;
            this.StockSymbol = stockSymbol;
            this.Sector = sector;
            this.Industry = industry;
            this.EmployeeCount = employeeCount;
        }

        public override string ToString()
        {
            return string.Format("{0}: {1},{2},{3},{4}", StockSymbol, CompanyName, Sector, Industry, EmployeeCount);
        }

        public string CompanyName { get; set; }

        public string StockSymbol { get; set; }

        public string Sector { get; set; }

        public string Industry { get; set; }

        public uint EmployeeCount { get; set; }

        public DateTime Start { get; set; }

        public DateTime End { get; set; }
    }
}
